3.927 \(\int \frac{(A+B x) (a+b x+c x^2)^{3/2}}{x} \, dx\)

Optimal. Leaf size=218 \[ a^{3/2} (-A) \tanh ^{-1}\left (\frac{2 a+b x}{2 \sqrt{a} \sqrt{a+b x+c x^2}}\right )-\frac{\sqrt{a+b x+c x^2} \left (2 c x \left (-12 a B c-8 A b c+3 b^2 B\right )-64 a A c^2-12 a b B c-8 A b^2 c+3 b^3 B\right )}{64 c^2}+\frac{\left (\left (b^2-4 a c\right ) \left (-12 a B c-8 A b c+3 b^2 B\right )+64 a A b c^2\right ) \tanh ^{-1}\left (\frac{b+2 c x}{2 \sqrt{c} \sqrt{a+b x+c x^2}}\right )}{128 c^{5/2}}+\frac{\left (a+b x+c x^2\right )^{3/2} (8 A c+3 b B+6 B c x)}{24 c} \]

[Out]

-((3*b^3*B - 8*A*b^2*c - 12*a*b*B*c - 64*a*A*c^2 + 2*c*(3*b^2*B - 8*A*b*c - 12*a*B*c)*x)*Sqrt[a + b*x + c*x^2]
)/(64*c^2) + ((3*b*B + 8*A*c + 6*B*c*x)*(a + b*x + c*x^2)^(3/2))/(24*c) - a^(3/2)*A*ArcTanh[(2*a + b*x)/(2*Sqr
t[a]*Sqrt[a + b*x + c*x^2])] + ((64*a*A*b*c^2 + (b^2 - 4*a*c)*(3*b^2*B - 8*A*b*c - 12*a*B*c))*ArcTanh[(b + 2*c
*x)/(2*Sqrt[c]*Sqrt[a + b*x + c*x^2])])/(128*c^(5/2))

________________________________________________________________________________________

Rubi [A]  time = 0.25405, antiderivative size = 218, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.217, Rules used = {814, 843, 621, 206, 724} \[ a^{3/2} (-A) \tanh ^{-1}\left (\frac{2 a+b x}{2 \sqrt{a} \sqrt{a+b x+c x^2}}\right )-\frac{\sqrt{a+b x+c x^2} \left (2 c x \left (-12 a B c-8 A b c+3 b^2 B\right )-64 a A c^2-12 a b B c-8 A b^2 c+3 b^3 B\right )}{64 c^2}+\frac{\left (\left (b^2-4 a c\right ) \left (-12 a B c-8 A b c+3 b^2 B\right )+64 a A b c^2\right ) \tanh ^{-1}\left (\frac{b+2 c x}{2 \sqrt{c} \sqrt{a+b x+c x^2}}\right )}{128 c^{5/2}}+\frac{\left (a+b x+c x^2\right )^{3/2} (8 A c+3 b B+6 B c x)}{24 c} \]

Antiderivative was successfully verified.

[In]

Int[((A + B*x)*(a + b*x + c*x^2)^(3/2))/x,x]

[Out]

-((3*b^3*B - 8*A*b^2*c - 12*a*b*B*c - 64*a*A*c^2 + 2*c*(3*b^2*B - 8*A*b*c - 12*a*B*c)*x)*Sqrt[a + b*x + c*x^2]
)/(64*c^2) + ((3*b*B + 8*A*c + 6*B*c*x)*(a + b*x + c*x^2)^(3/2))/(24*c) - a^(3/2)*A*ArcTanh[(2*a + b*x)/(2*Sqr
t[a]*Sqrt[a + b*x + c*x^2])] + ((64*a*A*b*c^2 + (b^2 - 4*a*c)*(3*b^2*B - 8*A*b*c - 12*a*B*c))*ArcTanh[(b + 2*c
*x)/(2*Sqrt[c]*Sqrt[a + b*x + c*x^2])])/(128*c^(5/2))

Rule 814

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Sim
p[((d + e*x)^(m + 1)*(c*e*f*(m + 2*p + 2) - g*(c*d + 2*c*d*p - b*e*p) + g*c*e*(m + 2*p + 1)*x)*(a + b*x + c*x^
2)^p)/(c*e^2*(m + 2*p + 1)*(m + 2*p + 2)), x] - Dist[p/(c*e^2*(m + 2*p + 1)*(m + 2*p + 2)), Int[(d + e*x)^m*(a
 + b*x + c*x^2)^(p - 1)*Simp[c*e*f*(b*d - 2*a*e)*(m + 2*p + 2) + g*(a*e*(b*e - 2*c*d*m + b*e*m) + b*d*(b*e*p -
 c*d - 2*c*d*p)) + (c*e*f*(2*c*d - b*e)*(m + 2*p + 2) + g*(b^2*e^2*(p + m + 1) - 2*c^2*d^2*(1 + 2*p) - c*e*(b*
d*(m - 2*p) + 2*a*e*(m + 2*p + 1))))*x, x], x], x] /; FreeQ[{a, b, c, d, e, f, g, m}, x] && NeQ[b^2 - 4*a*c, 0
] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && GtQ[p, 0] && (IntegerQ[p] ||  !RationalQ[m] || (GeQ[m, -1] && LtQ[m, 0])
) &&  !ILtQ[m + 2*p, 0] && (IntegerQ[m] || IntegerQ[p] || IntegersQ[2*m, 2*p])

Rule 843

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Dis
t[g/e, Int[(d + e*x)^(m + 1)*(a + b*x + c*x^2)^p, x], x] + Dist[(e*f - d*g)/e, Int[(d + e*x)^m*(a + b*x + c*x^
2)^p, x], x] /; FreeQ[{a, b, c, d, e, f, g, m, p}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0]
&&  !IGtQ[m, 0]

Rule 621

Int[1/Sqrt[(a_) + (b_.)*(x_) + (c_.)*(x_)^2], x_Symbol] :> Dist[2, Subst[Int[1/(4*c - x^2), x], x, (b + 2*c*x)
/Sqrt[a + b*x + c*x^2]], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 724

Int[1/(((d_.) + (e_.)*(x_))*Sqrt[(a_.) + (b_.)*(x_) + (c_.)*(x_)^2]), x_Symbol] :> Dist[-2, Subst[Int[1/(4*c*d
^2 - 4*b*d*e + 4*a*e^2 - x^2), x], x, (2*a*e - b*d - (2*c*d - b*e)*x)/Sqrt[a + b*x + c*x^2]], x] /; FreeQ[{a,
b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[2*c*d - b*e, 0]

Rubi steps

\begin{align*} \int \frac{(A+B x) \left (a+b x+c x^2\right )^{3/2}}{x} \, dx &=\frac{(3 b B+8 A c+6 B c x) \left (a+b x+c x^2\right )^{3/2}}{24 c}-\frac{\int \frac{\left (-8 a A c-\frac{1}{2} \left (8 A b c-3 B \left (b^2-4 a c\right )\right ) x\right ) \sqrt{a+b x+c x^2}}{x} \, dx}{8 c}\\ &=-\frac{\left (3 b^3 B-8 A b^2 c-12 a b B c-64 a A c^2+2 c \left (3 b^2 B-8 A b c-12 a B c\right ) x\right ) \sqrt{a+b x+c x^2}}{64 c^2}+\frac{(3 b B+8 A c+6 B c x) \left (a+b x+c x^2\right )^{3/2}}{24 c}+\frac{\int \frac{32 a^2 A c^2+\frac{1}{4} \left (64 a A b c^2-\left (b^2-4 a c\right ) \left (8 A b c-3 B \left (b^2-4 a c\right )\right )\right ) x}{x \sqrt{a+b x+c x^2}} \, dx}{32 c^2}\\ &=-\frac{\left (3 b^3 B-8 A b^2 c-12 a b B c-64 a A c^2+2 c \left (3 b^2 B-8 A b c-12 a B c\right ) x\right ) \sqrt{a+b x+c x^2}}{64 c^2}+\frac{(3 b B+8 A c+6 B c x) \left (a+b x+c x^2\right )^{3/2}}{24 c}+\left (a^2 A\right ) \int \frac{1}{x \sqrt{a+b x+c x^2}} \, dx+\frac{1}{128} \left (64 a A b+\frac{\left (b^2-4 a c\right ) \left (3 b^2 B-8 A b c-12 a B c\right )}{c^2}\right ) \int \frac{1}{\sqrt{a+b x+c x^2}} \, dx\\ &=-\frac{\left (3 b^3 B-8 A b^2 c-12 a b B c-64 a A c^2+2 c \left (3 b^2 B-8 A b c-12 a B c\right ) x\right ) \sqrt{a+b x+c x^2}}{64 c^2}+\frac{(3 b B+8 A c+6 B c x) \left (a+b x+c x^2\right )^{3/2}}{24 c}-\left (2 a^2 A\right ) \operatorname{Subst}\left (\int \frac{1}{4 a-x^2} \, dx,x,\frac{2 a+b x}{\sqrt{a+b x+c x^2}}\right )+\frac{1}{64} \left (64 a A b+\frac{\left (b^2-4 a c\right ) \left (3 b^2 B-8 A b c-12 a B c\right )}{c^2}\right ) \operatorname{Subst}\left (\int \frac{1}{4 c-x^2} \, dx,x,\frac{b+2 c x}{\sqrt{a+b x+c x^2}}\right )\\ &=-\frac{\left (3 b^3 B-8 A b^2 c-12 a b B c-64 a A c^2+2 c \left (3 b^2 B-8 A b c-12 a B c\right ) x\right ) \sqrt{a+b x+c x^2}}{64 c^2}+\frac{(3 b B+8 A c+6 B c x) \left (a+b x+c x^2\right )^{3/2}}{24 c}-a^{3/2} A \tanh ^{-1}\left (\frac{2 a+b x}{2 \sqrt{a} \sqrt{a+b x+c x^2}}\right )+\frac{\left (64 a A b+\frac{\left (b^2-4 a c\right ) \left (3 b^2 B-8 A b c-12 a B c\right )}{c^2}\right ) \tanh ^{-1}\left (\frac{b+2 c x}{2 \sqrt{c} \sqrt{a+b x+c x^2}}\right )}{128 \sqrt{c}}\\ \end{align*}

Mathematica [A]  time = 0.366382, size = 206, normalized size = 0.94 \[ \frac{\left (48 a^2 B c^2+96 a A b c^2-24 a b^2 B c-8 A b^3 c+3 b^4 B\right ) \tanh ^{-1}\left (\frac{b+2 c x}{2 \sqrt{c} \sqrt{a+x (b+c x)}}\right )}{128 c^{5/2}}+a^{3/2} (-A) \tanh ^{-1}\left (\frac{2 a+b x}{2 \sqrt{a} \sqrt{a+x (b+c x)}}\right )+\frac{\sqrt{a+x (b+c x)} \left (4 b c (15 a B+2 c x (14 A+9 B x))+8 c^2 \left (32 a A+15 a B x+8 A c x^2+6 B c x^3\right )+6 b^2 c (4 A+B x)-9 b^3 B\right )}{192 c^2} \]

Antiderivative was successfully verified.

[In]

Integrate[((A + B*x)*(a + b*x + c*x^2)^(3/2))/x,x]

[Out]

(Sqrt[a + x*(b + c*x)]*(-9*b^3*B + 6*b^2*c*(4*A + B*x) + 8*c^2*(32*a*A + 15*a*B*x + 8*A*c*x^2 + 6*B*c*x^3) + 4
*b*c*(15*a*B + 2*c*x*(14*A + 9*B*x))))/(192*c^2) - a^(3/2)*A*ArcTanh[(2*a + b*x)/(2*Sqrt[a]*Sqrt[a + x*(b + c*
x)])] + ((3*b^4*B - 8*A*b^3*c - 24*a*b^2*B*c + 96*a*A*b*c^2 + 48*a^2*B*c^2)*ArcTanh[(b + 2*c*x)/(2*Sqrt[c]*Sqr
t[a + x*(b + c*x)])])/(128*c^(5/2))

________________________________________________________________________________________

Maple [B]  time = 0.007, size = 390, normalized size = 1.8 \begin{align*}{\frac{Bx}{4} \left ( c{x}^{2}+bx+a \right ) ^{{\frac{3}{2}}}}+{\frac{bB}{8\,c} \left ( c{x}^{2}+bx+a \right ) ^{{\frac{3}{2}}}}+{\frac{3\,aBx}{8}\sqrt{c{x}^{2}+bx+a}}-{\frac{3\,{b}^{2}Bx}{32\,c}\sqrt{c{x}^{2}+bx+a}}+{\frac{3\,abB}{16\,c}\sqrt{c{x}^{2}+bx+a}}-{\frac{3\,{b}^{3}B}{64\,{c}^{2}}\sqrt{c{x}^{2}+bx+a}}+{\frac{3\,B{a}^{2}}{8}\ln \left ({ \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx+a} \right ){\frac{1}{\sqrt{c}}}}-{\frac{3\,Ba{b}^{2}}{16}\ln \left ({ \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx+a} \right ){c}^{-{\frac{3}{2}}}}+{\frac{3\,{b}^{4}B}{128}\ln \left ({ \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx+a} \right ){c}^{-{\frac{5}{2}}}}+{\frac{A}{3} \left ( c{x}^{2}+bx+a \right ) ^{{\frac{3}{2}}}}+{\frac{Abx}{4}\sqrt{c{x}^{2}+bx+a}}+{\frac{A{b}^{2}}{8\,c}\sqrt{c{x}^{2}+bx+a}}+{\frac{3\,Aab}{4}\ln \left ({ \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx+a} \right ){\frac{1}{\sqrt{c}}}}-{\frac{A{b}^{3}}{16}\ln \left ({ \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx+a} \right ){c}^{-{\frac{3}{2}}}}+Aa\sqrt{c{x}^{2}+bx+a}-A{a}^{{\frac{3}{2}}}\ln \left ({\frac{1}{x} \left ( 2\,a+bx+2\,\sqrt{a}\sqrt{c{x}^{2}+bx+a} \right ) } \right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((B*x+A)*(c*x^2+b*x+a)^(3/2)/x,x)

[Out]

1/4*B*x*(c*x^2+b*x+a)^(3/2)+1/8*B/c*(c*x^2+b*x+a)^(3/2)*b+3/8*B*(c*x^2+b*x+a)^(1/2)*x*a-3/32*B/c*(c*x^2+b*x+a)
^(1/2)*x*b^2+3/16*B/c*(c*x^2+b*x+a)^(1/2)*b*a-3/64*B/c^2*(c*x^2+b*x+a)^(1/2)*b^3+3/8*B/c^(1/2)*ln((1/2*b+c*x)/
c^(1/2)+(c*x^2+b*x+a)^(1/2))*a^2-3/16*B/c^(3/2)*ln((1/2*b+c*x)/c^(1/2)+(c*x^2+b*x+a)^(1/2))*b^2*a+3/128*B/c^(5
/2)*ln((1/2*b+c*x)/c^(1/2)+(c*x^2+b*x+a)^(1/2))*b^4+1/3*A*(c*x^2+b*x+a)^(3/2)+1/4*A*b*(c*x^2+b*x+a)^(1/2)*x+1/
8*A/c*(c*x^2+b*x+a)^(1/2)*b^2+3/4*A*b/c^(1/2)*ln((1/2*b+c*x)/c^(1/2)+(c*x^2+b*x+a)^(1/2))*a-1/16*A/c^(3/2)*ln(
(1/2*b+c*x)/c^(1/2)+(c*x^2+b*x+a)^(1/2))*b^3+A*a*(c*x^2+b*x+a)^(1/2)-A*a^(3/2)*ln((2*a+b*x+2*a^(1/2)*(c*x^2+b*
x+a)^(1/2))/x)

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(c*x^2+b*x+a)^(3/2)/x,x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [A]  time = 31.5857, size = 2435, normalized size = 11.17 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(c*x^2+b*x+a)^(3/2)/x,x, algorithm="fricas")

[Out]

[1/768*(384*A*a^(3/2)*c^3*log(-(8*a*b*x + (b^2 + 4*a*c)*x^2 - 4*sqrt(c*x^2 + b*x + a)*(b*x + 2*a)*sqrt(a) + 8*
a^2)/x^2) + 3*(3*B*b^4 + 48*(B*a^2 + 2*A*a*b)*c^2 - 8*(3*B*a*b^2 + A*b^3)*c)*sqrt(c)*log(-8*c^2*x^2 - 8*b*c*x
- b^2 - 4*sqrt(c*x^2 + b*x + a)*(2*c*x + b)*sqrt(c) - 4*a*c) + 4*(48*B*c^4*x^3 - 9*B*b^3*c + 256*A*a*c^3 + 12*
(5*B*a*b + 2*A*b^2)*c^2 + 8*(9*B*b*c^3 + 8*A*c^4)*x^2 + 2*(3*B*b^2*c^2 + 4*(15*B*a + 14*A*b)*c^3)*x)*sqrt(c*x^
2 + b*x + a))/c^3, 1/384*(192*A*a^(3/2)*c^3*log(-(8*a*b*x + (b^2 + 4*a*c)*x^2 - 4*sqrt(c*x^2 + b*x + a)*(b*x +
 2*a)*sqrt(a) + 8*a^2)/x^2) - 3*(3*B*b^4 + 48*(B*a^2 + 2*A*a*b)*c^2 - 8*(3*B*a*b^2 + A*b^3)*c)*sqrt(-c)*arctan
(1/2*sqrt(c*x^2 + b*x + a)*(2*c*x + b)*sqrt(-c)/(c^2*x^2 + b*c*x + a*c)) + 2*(48*B*c^4*x^3 - 9*B*b^3*c + 256*A
*a*c^3 + 12*(5*B*a*b + 2*A*b^2)*c^2 + 8*(9*B*b*c^3 + 8*A*c^4)*x^2 + 2*(3*B*b^2*c^2 + 4*(15*B*a + 14*A*b)*c^3)*
x)*sqrt(c*x^2 + b*x + a))/c^3, 1/768*(768*A*sqrt(-a)*a*c^3*arctan(1/2*sqrt(c*x^2 + b*x + a)*(b*x + 2*a)*sqrt(-
a)/(a*c*x^2 + a*b*x + a^2)) + 3*(3*B*b^4 + 48*(B*a^2 + 2*A*a*b)*c^2 - 8*(3*B*a*b^2 + A*b^3)*c)*sqrt(c)*log(-8*
c^2*x^2 - 8*b*c*x - b^2 - 4*sqrt(c*x^2 + b*x + a)*(2*c*x + b)*sqrt(c) - 4*a*c) + 4*(48*B*c^4*x^3 - 9*B*b^3*c +
 256*A*a*c^3 + 12*(5*B*a*b + 2*A*b^2)*c^2 + 8*(9*B*b*c^3 + 8*A*c^4)*x^2 + 2*(3*B*b^2*c^2 + 4*(15*B*a + 14*A*b)
*c^3)*x)*sqrt(c*x^2 + b*x + a))/c^3, 1/384*(384*A*sqrt(-a)*a*c^3*arctan(1/2*sqrt(c*x^2 + b*x + a)*(b*x + 2*a)*
sqrt(-a)/(a*c*x^2 + a*b*x + a^2)) - 3*(3*B*b^4 + 48*(B*a^2 + 2*A*a*b)*c^2 - 8*(3*B*a*b^2 + A*b^3)*c)*sqrt(-c)*
arctan(1/2*sqrt(c*x^2 + b*x + a)*(2*c*x + b)*sqrt(-c)/(c^2*x^2 + b*c*x + a*c)) + 2*(48*B*c^4*x^3 - 9*B*b^3*c +
 256*A*a*c^3 + 12*(5*B*a*b + 2*A*b^2)*c^2 + 8*(9*B*b*c^3 + 8*A*c^4)*x^2 + 2*(3*B*b^2*c^2 + 4*(15*B*a + 14*A*b)
*c^3)*x)*sqrt(c*x^2 + b*x + a))/c^3]

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (A + B x\right ) \left (a + b x + c x^{2}\right )^{\frac{3}{2}}}{x}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(c*x**2+b*x+a)**(3/2)/x,x)

[Out]

Integral((A + B*x)*(a + b*x + c*x**2)**(3/2)/x, x)

________________________________________________________________________________________

Giac [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((B*x+A)*(c*x^2+b*x+a)^(3/2)/x,x, algorithm="giac")

[Out]

Exception raised: TypeError